package com.woniuxy.cloud.carl.store.client;


import com.woniuxy.cloud.carl.store.client.result.StoreSaleDto;
import com.woniuxy.result.Result;
import io.micrometer.core.lang.Nullable;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 门店月销表 前端控制器
 * </p>
 *
 * @author Lucas
 * @since 2023-07-19
 */
@FeignClient(name = "store",contextId = "storeSaleClient")
public interface StoreSaleClient {
    @GetMapping("/getStoreSale")
    Result<List<StoreSaleDto>> getStoreSale(@RequestParam("storeId") Long storeId);

    @GetMapping("/getStoreSaleInfoFromRedis")
    void getInfoFromRedis();
}

